package Decorate;

public class ScrollBox extends Decorator{
    public ScrollBox(Component component) {
        super(component);
    }

    @Override
    public void show() {
        System.out.println("----Scroll-----||");
        component.show();
        System.out.println("---------------||");
    }

    public void scroll(){
        System.out.println("滚动了一下");
    }
}
